home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / Include / sun3.md / machInt.h < prev    next >
C/C++ Source or Header  |  1989-08-15  |  3KB  |  86 lines

  1. /*
  2.  * machInt.h --
  3.  *
  4.  *    This file defines things that are shared between the "mach" modules
  5.  *    but aren't used by the rest of Sprite.
  6.  *
  7.  * Copyright 1988 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $Header: /sprite/src/kernel/mach/sun3.md/RCS/machInt.h,v 8.2 89/08/15 18:21:31 rab Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #ifndef _MACHINT
  20. #define _MACHINT
  21.  
  22. #include "machMon.h"
  23.  
  24. /*
  25.  * The bounds of the code that copies arguments from the user stack to
  26.  * the kernel stack.
  27.  */
  28. extern int MachFetchArgs();
  29. extern int MachFetchArgsEnd();
  30.  
  31. /*
  32.  * The number of different exceptions.
  33.  */
  34. #define    MACH_NUM_EXCEPTIONS    64
  35.  
  36. /*
  37.  * Structure which contains the different functions called for exceptions.
  38.  */
  39.  
  40. typedef struct {
  41.     int    initSupStackPtr;    /* 00 - initial SSP on reset*/
  42.     int    (*initPC)();        /* 04 - initial PC on reset*/
  43.     int    (*busError)();        /* 08 - bus error */
  44.     int    (*addressError)();    /* 0c - address error */
  45.     int    (*illegalInst)();    /* 10 - illegal instruction */
  46.     int    (*zeroDiv)();        /* 14 - zero divide */
  47.     int    (*chk)();        /* 18 - CHK instruction */
  48.     int    (*trapv)();        /* 1c - TRAPV instruction */
  49.     int    (*privViol)();        /* 20 - privilege violation */
  50.     int    (*traceTrap)();        /* 24 - trace trap */
  51.     int    (*emu1010)();        /* 28 - line 1010 emulator */
  52.     int    (*emu1111)();        /* 2c - line 1111 emulator */
  53.     int    (*res30)();        /* 30 - reserved */
  54.     int    (*res34)();        /* 34 - reserved */
  55.     int    (*stackFmtError)();    /* 38 - RTE format error */
  56.     int    (*unInitIntr)();    /* 3c - unitialized interrupt */
  57.     int    (*res1[8])();        /* 40-5c - reserved */
  58.     int    (*spuriousInt)();    /* 60 - spurious interrupt */
  59.     int    (*autoVec[7])();    /* 64-7c - level 1-7 autovectors */
  60.     int    (*trap[16])();        /* 80-bc - trap instruction vectors */
  61.     int    (*res2[16])();        /* c0-fc - reserved */
  62. } MachVectorTable;
  63.  
  64. /*
  65.  * The actual table of vectors.
  66.  */
  67. extern    MachVectorTable        *machVectorTablePtr;
  68.  
  69. /*
  70.  * The prototype table which contains the vectors which are to be copied into
  71.  * the vector table.
  72.  */
  73. extern    MachVectorTable     machProtoVectorTable;
  74.  
  75. /*
  76.  * Copy of the boot parameter structure.
  77.  */
  78. extern     MachMonBootParam    machMonBootParam;
  79.  
  80. /*
  81.  * Internal functions.
  82.  */
  83. extern    void    MachUserReturn();
  84.  
  85. #endif /* _MACHINT */
  86.